Declaring a POU within a namespace
How to declare a POU already created within a →namespace (this is done in the →graphical FBD-editor):
-
Make the tab Namespaces visible.
-
In the field Current namespace, enter a text. The text must be an →IEC-identifier or a fully qualified name.
A fully qualified name consists of a sequence of namespace identifiers separated by.
(dots).
Examples for namespaces:Standard
,Standard.Timers
,Standard.Timers.HighResolution
,Standard.Counters
-
Press the Enter-key or click anywhere outside the field to use the text as current namespace. Press the ESC-key, if you want to discard the text.
-
Save the FBD-editor so that the POU is declared within the namespace.
-
Check the messages in the Problems view whether →calls of the current POU are now reported as faulty.
Restriction Avoid creating POUs with the name of a language element from the global namespace and declaring them within a namespace. Reason: At present, it is not possible to use language elements with the same name from the global namespace. This restriction applies to all language elements declared in the global namespace, but in particular to the system blocks. Neuron Power Engineer changes the call of the language element declared in the global namespace to the call of the language element declared in the same namespace. |
It is also possible to specify a namespace when creating the FBD-object (see "Creating POU in FBD") or within the application navigator (see "Actions with folders/objects in context with namespaces").
How to change a current namespace for a POU: Overwrite the text entered in the field Current namespace.
How to delete the current namespace for a POU: see "Deleting/removing namespaces for a POU"